<?php
require_once 'Log.php';

$filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'test.log';
if (file_exists($filename)) unlink($filename);

/* Write some entries to the log file. */
$conf = array('dsn' => 'mysql://mysqluser:mysqlpass@localhost/my_icq_db');
$logger = &Log::singleton('sql', 'log_table', 'ident', $conf);
for ($i = 0; $i < 100; $i++) {
    $logger->log("Log entry $i", PEAR_LOG_ERR);
}


echo "!!!";

/* Clean up. */
//if (file_exists($filename)) unlink($filename);

?>